package me.liuhui.mall.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.liuhui.mall.repository.model.AdminRole;
import me.liuhui.mall.repository.model.dao.AdminRoleDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 后台用户和角色关系表 Mapper 接口
 * </p>
 *
 * @author liuhui
 * @since 2023-04-06
 */
@Mapper
public interface AdminRoleMapper extends BaseMapper<AdminRole> {
    void deleteByAdmin(Long adminId);

    List<AdminRoleDTO> selectRoleByAdmin(@Param("adminIds") List<Long> adminIds);

}
